<template>
    <div>
        <van-card :price="creat" :title="name" thumb="">

            <template #thumb>
                <div style="display: flex;">
                    <van-checkbox v-model="checked" />
                    <img src="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg" alt=""
                        style="width: 6rem; height: 6rem;">
                </div>
            </template>
            <template #footer>
                <van-stepper v-model="value" />
            </template>
        </van-card>
    </div>
    <van-submit-bar :price="2030" button-text="提交订单" @submit="onSubmit">
  <van-checkbox v-model="checked">全选</van-checkbox>
</van-submit-bar>
</template>

<script setup>
import { ref } from 'vue';
const checked = ref(true);
const value = ref(1);
const creat = '20.30'
const name = ' 电视电子清洗剂 '
const router=useRouter()
import { useRouter } from 'vue-router';
const onSubmit =()=>{
   router.push('/dd')
}
</script>

<style lang="scss" scoped></style>